<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var num1 = '67';
        var num2 = '67.76';
        console.log(num1);
        console.log(typeof parseInt(num1));
        console.log(typeof parseInt(num1 + 'px'));// 结果同上
        console.log(typeof parseFloat(num2));
        console.log(typeof parseFloat(num2 + 'px'));// 结果同上
        console.log(parseInt("res324")); // NaN
        console.log(typeof Number('4324'));// number
        console.log(Number('rew')); // NaN
    </script>
</body>
</html>

//        Arrays.sort(intval, (a, b) -> {
    //            return a[0] - b[0] == 0 ? a[1] - b[1] : a[0] - b[0];
    //        });
    //        int n = intval.length;
    //        int[] dp = new int[n];
    //        Arrays.fill(dp, 1);
    //        for (int i = 1; i < n; i++) {
    //            for (int j = 0; j < i - 1; j++) {
    //                if (intval[j][1] <= intval[i][0]) {
    //                    dp[i] = Math.max(dp[i], dp[j] + 1);
    //                }
    //            }
    //        }
    //        System.out.println(dp[n - 1]);
    //        return dp[n - 1] == n;

    
//class Solution {
    //    public int minCostToMoveChips(int[] position) {
    //         Map<Integer, Integer> map = new HashMap<>();
    //         for (int i = 0; i < position.length; i++) {
    //             map.put(position[i], map.getOrDefault(position[i], 0) + 1);
    //         }
    ////         List<Integer> list = map.keySet().;
    //    }
    //}
    